<template>
	<view class="page">
		<video id="myVideo" style="width: 100%;" :src="src"
			@error="videoErrorCallback" controls show-fullscreen-btn show-mute-btn="true"></video>

	</view>
</template>

<script>
	export default {
		data() {
			return {
				src:""
			}
		
		},
		onload(){
			
		},
		onShow() {
			this.getVideoSrc()
		},
		methods: {
			getVideoSrc() {
				let that = this;
				this.$pin.request('GET', '/assets/course_video', null,
					successData => {
						if (successData.code == that.$pin.code.success) {
							that.src = successData.data;
						}
					},
					failData => {
						uni.showToast({
							icon: 'none',
							title: '获取视频信息失败'
						})
					})
			
			},
			videoErrorCallback() {



			}

		}
	}
</script>

<style lang="scss">

.page{
	
}
</style>